package com.kele.sms.config;

import org.springframework.amqp.core.Queue;
import org.springframework.amqp.core.QueueBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


@Configuration
public class RabbitMQConfig {

    private static final String QUEUE_NAME = "sms";

    @Bean(QUEUE_NAME)
    public Queue queueDeclare(){
        //return new Queue(QUEUE_NAME,true);
        return QueueBuilder.durable(QUEUE_NAME).build();
    }

}
